package com.cskaoyan.controller;

import com.cskaoyan.bean.MallAdmin;
import com.cskaoyan.bean.data.BaseData;
import com.cskaoyan.bean.param.BaseParam;
import com.cskaoyan.bean.vo.BaseRespVo;
import com.cskaoyan.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.autoconfigure.kafka.KafkaProperties;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("admin/admin")
public class AdminController {

    @Autowired
    AdminService adminService;

    @RequestMapping("list")
    public BaseRespVo list(BaseParam baseParam){
        BaseData<MallAdmin> baseData = adminService.query(baseParam);
        return BaseRespVo.ok(baseData);
    }
}
